package com.shell.guard.utils;

import java.util.HashMap;
import java.util.Map;

import com.shell.guard.vo.LoginUuid;

public class QRCodeLoginUtil
{
  private static Map<String, LoginUuid> uuidMap;
  
  public static void set(LoginUuid loginUUID)
  {
    if (uuidMap == null) {
      uuidMap = new HashMap<String, LoginUuid>();
    }
    uuidMap.put(loginUUID.getUuid(), loginUUID);
  }
  
  public static LoginUuid get(String uuid)
  {
    return uuidMap.get(uuid);
  }
}

